Enum Class MessageTypeEnum

java.lang.Object
java.lang.Enum<MessageTypeEnum>
eu.europa.ec.taxud.cesop.domain.MessageTypeEnum
All Implemented Interfaces:
Serializable, Comparable<MessageTypeEnum>, java.lang.constant.Constable

public enum MessageTypeEnum extends Enum<MessageTypeEnum>
Enum for the CESOP payment data message types.
  • Enum Constant Details

    • PMT

      public static final MessageTypeEnum PMT
      The message type is 'Payment data' (or 'No Payment data').
    • VLD

      public static final MessageTypeEnum VLD
      The message type is 'Validation result message'.
    • PNG

      public static final MessageTypeEnum PNG
      The message type is 'Ping Message'.
  • Method Details

    • values

      public static MessageTypeEnum[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MessageTypeEnum valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getLabel

      public String getLabel()
      Gets label.
      Returns:
      the label
    • findByLabel

      public static MessageTypeEnum findByLabel(String label)
      Find a MessageTypeEnum by its label.
      Parameters:
      label - the label
      Returns:
      the MessageTypeEnum
      Throws:
      IllegalArgumentException - if there is no value for the label
    • isBusinessRulesCheckEnabled

      public boolean isBusinessRulesCheckEnabled()
      Retrieves whether the check for business rules is enabled by default.
      Returns:
      true if the check for business rules is enabled by default, false otherwise.